package top.revery.api.api.webPages;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import top.revery.api.entity.other.BaseWebPages;

import java.util.List;

/**
 * <h1> --- 分类接口 --- </h1>
 * Created by  revery.top jun
 * Date  2019-12-04 21:08
 */
@RequestMapping("/api_webPages")
public interface IWebPages {
    /*
     * 获取详情
     * */
    @RequestMapping("/getWebPage")
    BaseWebPages getWebPage(@RequestBody Long id);

    /*
     * 获取列表
     * */
    @RequestMapping("/getList")
    List<BaseWebPages> getList();

    /*
     * 保存
     * */
    @PostMapping("/save")
    BaseWebPages save(@RequestBody BaseWebPages webPage);

    /*
     * 移除
     * */
    @PostMapping("/del")
    void del(@RequestBody int id);
}
